<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>简介</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.memtrack.html">Memtrack</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="memtrack.setup.html">安装／配置</a></div>
 <div class="up"><a href="book.memtrack.html">Memtrack</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intro.memtrack" class="preface">
  <h1 class="title">简介</h1>
  <p class="para">
   The purpose of this extension is to detect the most memory hungry scripts
   and functions.
  </p>
  <p class="para">
   memtrack tracks memory consumption in PHP scripts and produces reports 
   (warnings) when the consumption reaches certain levels set by the user.
   This is achieved by replacing default executor function by a special 
   function which compares memory usage before and after running the 
   original executor - this way we can tell how much the memory usage 
   has changed during the execution of the current part of the code.
  </p>
  <p class="para">
   Zend Engine runs its executor for each opcode array (op_array), 
   which usually means function, plain script and such, so memtrack doesn&#039;t
   have any noticeable effect on performance.
  </p>
  <p class="para">
   memtrack doesn&#039;t provide any functions, there are only INI directives which
   allow you to configure the way it should work.
  </p>
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此扩展是<em class="emphasis">实验性 </em>的。
此扩展的表象，包括其函数名称以及其他此扩展的相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本扩展风险自担 。</p></div>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.memtrack.html">Memtrack</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="memtrack.setup.html">安装／配置</a></div>
 <div class="up"><a href="book.memtrack.html">Memtrack</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
